package com.situ.struts.action;

import com.opensymphony.xwork2.ActionSupport;
import com.situ.struts.entity.User;

public class User2Action extends ActionSupport{
	//对象类型，要加上get和set
	private User user;

	public String register() {
		System.out.println(user);
		return "success";
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}
